<?php
  require_once('tpl/header.php');
?>
 <?php 
     require_once('../system/loginCheck.php');
    require_once('../system/dbConn.php');
    connect();
    ?>
    <h1>欢迎管理员<?php echo $_SESSION["adminname"]; ?>使用本系统</h1>
    <?php
    $tid=$_GET["tid"];
    
    $sql="select * from videotype where tid={$tid}";
    $result=mysql_query($sql);
    $row=mysql_fetch_assoc($result);
      ?>
    <form action="doTypeUpdate.php" method="post" enctype="multipart/form-data">
    	<input type="hidden" name="tid" value="<?php echo $row['tid']; ?>" >
    	<table class="table table-bordered">
   	     	<tr>
   	     		<td>
   	     		    视频类型
   	     		</td>
   	     		<td>
   	     			<input type="text" name="typename"  value="<?php echo $row["typename"];?>">
   	     		</td>
   	     	</tr>
   	     	<tr>
   	     		<td  colspan="2">
   	     			<input type="submit" value="更新">
   	     		</td>
   	     	</tr>
    	</table>
    </form>
   


<?php
  require_once('tpl/footer.php');
?>